Skip to content

Unbind HelpProvider events when resetting ShowHelp - #15521

Open
XFEstudio wants to merge 1 commit into
dotnet:mainfrom
XFEstudio:fix/winforms-help-provider-reset-nov27
Open

XFEstudio wants to merge 1 commit into
dotnet:mainfrom
XFEstudio:fix/winforms-help-provider-reset-nov27

Conversation

@XFEstudio

@XFEstudio XFEstudio commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Proposed changes

Update HelpProvider event subscriptions when ResetShowHelp removes its flag.

Customer Impact

After resetting ShowHelp, AccessibilityObject.Help can still return the previous help text. Detaching the subscribed handler makes accessibility queries reflect the reset state.

Regression?

Introduction point unknown. Reproduced on .NET 10 and the upstream baseline.

Risk

The reset uses the same binding update as other ShowHelp changes. The test confirms that resetting clears accessible help and that enabling it again restores stored content.

Test methodology

1 regression cases failed on the baseline. 106 related tests passed with 0 skipped after the fix. The test project built with 0 warnings and 0 errors. Windows validation.

Test environment(s)

Windows x64 Debug with the repository .NET 12 SDK.

Developed with AI assistance and independently reviewed by an AI agent.

Microsoft Reviewers: Open in CodeFlow

@XFEstudio
XFEstudio requested a review from a team as a code owner November 27, 2026 06:10
@codecov

codecov Bot commented Nov 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 41.23472%. Comparing base (d7f39b1) to head (fa7cfc8).

Additional details and impacted files
@@              Coverage Diff              @@
##                main      #15521   +/-   ##
=============================================
  Coverage   41.23472%   41.23472%           
=============================================
  Files            247         247           
  Lines           9897        9897           
  Branches        1049        1049           
=============================================
  Hits            4081        4081           
  Misses          5621        5621           
  Partials         195         195           
Flag Coverage Δ
Debug 41.23472% <ø> (ø)
production 43.92353% <ø> (ø)
test 19.92786% <ø> (ø)
unit 43.92353% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant